package com.investmenttechnologyservices.model;

import java.util.Date;

import com.google.appengine.api.datastore.Entity;
import com.google.appengine.api.datastore.Key;

public class Option extends FutureAndOption {
	//OptionType optionType;
	//OptionStyle optionStyle;

	public Option(Entity entity) {
		super(entity);
	}

	public Option(String id, Key firmKey, String name, Key issuerKey, 
			Key underlyingInstrumentKey, Date lastTradingDate,
			Double notionalAmount, Short expirationMonth, Short expirationYear, 
			Delivery delivery, OptionType optionType, OptionStyle optionStyle,	
			InstrumentType instrumentType) {
	    super(id, firmKey, name, issuerKey, underlyingInstrumentKey,lastTradingDate, 
	    	notionalAmount, expirationMonth, expirationYear, delivery, instrumentType);
		setOptionType(optionType);
		setOptionStyle(optionStyle);
	}

	public void setOptionType(OptionType optionType) {
		setProperty("optionType", optionType);
	}
	public OptionType getOptionType() {
		return (OptionType)getProperty("optionType");
	}

	public void setOptionStyle(OptionStyle optionStyle) {
		setProperty("optionStyle", optionStyle);
	}
	
	public OptionStyle getOptionStyle() {
		return (OptionStyle)getProperty("optionStyle");
	}
	
}
